package com.ruoyi.market.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销任务对象 market_task
 *
 * @author ruoyi
 * @date 2023-01-29
 */
@TableName("market_task")
public class MarketTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @TableField("name")
    private String name;

    /** 完成功能 */
    @Excel(name = "完成功能")
    @TableField("result")
    private String result;

    /** 参数限制（0表示所有用户，1表示新用户） */
    @Excel(name = "参数限制", readConverterExp = "0=表示所有用户，1表示新用户")
    @TableField("join_limit")
    private Long joinLimit;

    /** 次数限制 */
    @Excel(name = "次数限制")
    @TableField("number_limit")
    private Long numberLimit;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setResult(String result)
    {
        this.result = result;
    }

    public String getResult()
    {
        return result;
    }
    public void setJoinLimit(Long joinLimit)
    {
        this.joinLimit = joinLimit;
    }

    public Long getJoinLimit()
    {
        return joinLimit;
    }
    public void setNumberLimit(Long numberLimit)
    {
        this.numberLimit = numberLimit;
    }

    public Long getNumberLimit()
    {
        return numberLimit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("result", getResult())
            .append("joinLimit", getJoinLimit())
            .append("numberLimit", getNumberLimit())
            .toString();
    }
}
